.class public Lcom/instagram/android/b/h;
.super Ljava/lang/Object;
.source "InstagramAnalyticsLogger.java"

# interfaces
.implements Lcom/instagram/b/c;


# instance fields
.field private final a:Landroid/content/Context;

.field private final b:Ljava/lang/String;

.field private final c:Ljava/lang/String;

.field private final d:Ljava/lang/String;

.field private final e:Ljava/lang/String;

.field private f:Ljava/lang/String;

.field private g:Ljava/lang/String;

.field private h:Lcom/instagram/android/b/a/a;

.field private final i:Lcom/instagram/android/b/l;

.field private j:Lcom/instagram/android/b/b;

.field private k:Lcom/instagram/android/b/b;

.field private final l:Landroid/os/Handler;

.field private final m:Ljava/util/Queue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Queue",
            "<",
            "Lcom/instagram/android/b/k;",
            ">;"
        }
    .end annotation
.end field

.field private final n:Ljava/util/concurrent/ExecutorService;

.field private final o:Ljava/util/concurrent/atomic/AtomicBoolean;

.field private final p:Ljava/lang/Runnable;

.field private final q:Lcom/instagram/android/b/d;

.field private final r:Lcom/instagram/android/b/e;

.field private s:Lcom/instagram/b/b;
    .annotation build Lch/boye/httpclientandroidlib/annotation/GuardedBy;
        value = "this"
    .end annotation
.end field

.field private t:Landroid/widget/Toast;

.field private u:J

.field private final v:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set",
            "<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field private w:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 3
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v1, 0x0

    .line 202
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 102
    new-instance v0, Lcom/instagram/android/b/i;

    invoke-direct {v0, p0}, Lcom/instagram/android/b/i;-><init>(Lcom/instagram/android/b/h;)V

    iput-object v0, p0, Lcom/instagram/android/b/h;->l:Landroid/os/Handler;

    .line 140
    new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/b/h;->m:Ljava/util/Queue;

    .line 147
    invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadExecutor()Ljava/util/concurrent/ExecutorService;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/b/h;->n:Ljava/util/concurrent/ExecutorService;

    .line 148
    new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V

    iput-object v0, p0, Lcom/instagram/android/b/h;->o:Ljava/util/concurrent/atomic/AtomicBoolean;

    .line 170
    invoke-static {}, Lcom/b/a/b/dx;->a()Ljava/util/HashSet;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/b/h;->v:Ljava/util/Set;

    .line 171
    iput-boolean v1, p0, Lcom/instagram/android/b/h;->w:Z

    .line 203
    iput-object p2, p0, Lcom/instagram/android/b/h;->b:Ljava/lang/String;

    .line 204
    iput-object p4, p0, Lcom/instagram/android/b/h;->d:Ljava/lang/String;

    .line 205
    iput-object p3, p0, Lcom/instagram/android/b/h;->c:Ljava/lang/String;

    .line 206
    iput-object p5, p0, Lcom/instagram/android/b/h;->e:Ljava/lang/String;

    .line 207
    invoke-direct {p0, p7}, Lcom/instagram/android/b/h;->d(Ljava/lang/String;)V

    .line 208
    invoke-direct {p0, p8}, Lcom/instagram/android/b/h;->c(Ljava/lang/String;)V

    .line 210
    iput-object p1, p0, Lcom/instagram/android/b/h;->a:Landroid/content/Context;

    .line 212
    new-instance v0, Lcom/instagram/android/b/a/a;

    invoke-direct {v0}, Lcom/instagram/android/b/a/a;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/b/h;->h:Lcom/instagram/android/b/a/a;

    .line 213
    new-instance v0, Lcom/instagram/android/b/s;

    invoke-direct {v0, p0}, Lcom/instagram/android/b/s;-><init>(Lcom/instagram/android/b/h;)V

    .line 214
    new-instance v1, Lcom/facebook/b/a/k;

    invoke-direct {v1, p1}, Lcom/facebook/b/a/k;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1}, Lcom/facebook/b/a/k;->a()Lcom/facebook/b/a/i;

    move-result-object v1

    const-string v2, "android.intent.action.DATE_CHANGED"

    invoke-interface {v1, v2, v0}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v1

    const-string v2, "android.intent.action.TIME_SET"

    invoke-interface {v1, v2, v0}, Lcom/facebook/b/a/i;->a(Ljava/lang/String;Lcom/facebook/d/a;)Lcom/facebook/b/a/i;

    move-result-object v0

    invoke-interface {v0}, Lcom/facebook/b/a/i;->a()Lcom/facebook/b/a/j;

    move-result-object v0

    invoke-interface {v0}, Lcom/facebook/b/a/j;->b()V

    .line 220
    new-instance v0, Lcom/instagram/android/b/l;

    invoke-direct {v0, p0}, Lcom/instagram/android/b/l;-><init>(Lcom/instagram/android/b/h;)V

    iput-object v0, p0, Lcom/instagram/android/b/h;->i:Lcom/instagram/android/b/l;

    .line 222
    new-instance v0, Lcom/instagram/android/b/j;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/b/j;-><init>(Lcom/instagram/android/b/h;Lcom/instagram/android/b/i;)V

    iput-object v0, p0, Lcom/instagram/android/b/h;->p:Ljava/lang/Runnable;

    .line 223
    new-instance v0, Lcom/instagram/android/b/d;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/instagram/android/b/d;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/instagram/android/b/h;->q:Lcom/instagram/android/b/d;

    .line 224
    new-instance v0, Lcom/instagram/android/b/e;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/b/h;->e:Ljava/lang/String;

    invoke-direct {v0, v1, v2, p6}, Lcom/instagram/android/b/e;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/instagram/android/b/h;->r:Lcom/instagram/android/b/e;

    .line 226
    invoke-direct {p0}, Lcom/instagram/android/b/h;->c()V

    .line 227
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/b/h;Lcom/instagram/android/b/b;)Lcom/instagram/android/b/b;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    iput-object p1, p0, Lcom/instagram/android/b/h;->k:Lcom/instagram/android/b/b;

    return-object p1
.end method

.method private a(Lcom/instagram/android/b/a/c;)V
    .locals 3
    .parameter

    .prologue
    .line 439
    iget-object v0, p0, Lcom/instagram/android/b/h;->h:Lcom/instagram/android/b/a/a;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2, p1}, Lcom/instagram/android/b/a/a;->a(JLcom/instagram/android/b/a/c;)Lcom/instagram/b/b;

    move-result-object v0

    .line 443
    if-eqz v0, :cond_0

    .line 444
    invoke-virtual {p0, v0}, Lcom/instagram/android/b/h;->a(Lcom/instagram/b/b;)V

    .line 446
    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/b/h;)V
    .locals 0
    .parameter

    .prologue
    .line 54
    invoke-direct {p0}, Lcom/instagram/android/b/h;->f()V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/b/h;Lcom/instagram/android/b/a/c;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-direct {p0, p1}, Lcom/instagram/android/b/h;->a(Lcom/instagram/android/b/a/c;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/b/h;Lcom/instagram/android/b/k;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-direct {p0, p1}, Lcom/instagram/android/b/h;->a(Lcom/instagram/android/b/k;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/b/h;Lcom/instagram/b/b;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-direct {p0, p1}, Lcom/instagram/android/b/h;->c(Lcom/instagram/b/b;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/b/h;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-direct {p0, p1}, Lcom/instagram/android/b/h;->d(Ljava/lang/String;)V

    return-void
.end method

.method private a(Lcom/instagram/android/b/k;)V
    .locals 1
    .parameter

    .prologue
    .line 450
    iget-object v0, p0, Lcom/instagram/android/b/h;->m:Ljava/util/Queue;

    invoke-interface {v0, p1}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z

    .line 451
    invoke-direct {p0}, Lcom/instagram/android/b/h;->f()V

    .line 452
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/b/h;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    iput-boolean p1, p0, Lcom/instagram/android/b/h;->w:Z

    return p1
.end method

.method private static b(Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 177
    invoke-static {p0}, Lcom/facebook/c/i/c;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string p0, "0"

    :cond_0
    return-object p0
.end method

.method static synthetic b(Lcom/instagram/android/b/h;)Ljava/util/concurrent/atomic/AtomicBoolean;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/b/h;->o:Ljava/util/concurrent/atomic/AtomicBoolean;

    return-object v0
.end method

.method static synthetic b(Lcom/instagram/android/b/h;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-direct {p0, p1}, Lcom/instagram/android/b/h;->c(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic c(Lcom/instagram/android/b/h;)Ljava/util/Queue;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/b/h;->m:Ljava/util/Queue;

    return-object v0
.end method

.method private c()V
    .locals 2

    .prologue
    .line 264
    iget-object v0, p0, Lcom/instagram/android/b/h;->j:Lcom/instagram/android/b/b;

    if-eqz v0, :cond_0

    .line 265
    invoke-direct {p0}, Lcom/instagram/android/b/h;->e()V

    .line 268
    :cond_0
    const-string v0, "InstagramAnalyticsLogger"

    const-string v1, "Starting new session"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 269
    invoke-direct {p0}, Lcom/instagram/android/b/h;->d()Lcom/instagram/android/b/b;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/b/h;->j:Lcom/instagram/android/b/b;

    .line 270
    return-void
.end method

.method private c(Lcom/instagram/b/b;)V
    .locals 1
    .parameter

    .prologue
    .line 465
    iget-object v0, p0, Lcom/instagram/android/b/h;->g:Ljava/lang/String;

    invoke-virtual {p1, v0}, Lcom/instagram/b/b;->a(Ljava/lang/String;)Lcom/instagram/b/b;

    .line 466
    return-void
.end method

.method private c(Ljava/lang/String;)V
    .locals 1
    .parameter

    .prologue
    .line 253
    invoke-static {p1}, Lcom/instagram/android/b/h;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/b/h;->f:Ljava/lang/String;

    .line 254
    return-void
.end method

.method private d()Lcom/instagram/android/b/b;
    .locals 2

    .prologue
    .line 273
    new-instance v0, Lcom/instagram/android/b/b;

    invoke-direct {v0}, Lcom/instagram/android/b/b;-><init>()V

    .line 274
    iget-object v1, p0, Lcom/instagram/android/b/h;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/instagram/android/b/b;->b(Ljava/lang/String;)V

    .line 275
    iget-object v1, p0, Lcom/instagram/android/b/h;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/instagram/android/b/b;->c(Ljava/lang/String;)V

    .line 276
    iget-object v1, p0, Lcom/instagram/android/b/h;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/instagram/android/b/b;->e(Ljava/lang/String;)V

    .line 277
    iget-object v1, p0, Lcom/instagram/android/b/h;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/instagram/android/b/b;->d(Ljava/lang/String;)V

    .line 278
    iget-object v1, p0, Lcom/instagram/android/b/h;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/instagram/android/b/b;->a(Ljava/lang/String;)V

    .line 280
    return-object v0
.end method

.method static synthetic d(Lcom/instagram/android/b/h;)Lcom/instagram/android/b/b;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/b/h;->k:Lcom/instagram/android/b/b;

    return-object v0
.end method

.method private d(Ljava/lang/String;)V
    .locals 1
    .parameter

    .prologue
    .line 257
    invoke-static {p1}, Lcom/instagram/android/b/h;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/b/h;->g:Ljava/lang/String;

    .line 258
    return-void
.end method

.method static synthetic e(Lcom/instagram/android/b/h;)Lcom/instagram/android/b/d;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/b/h;->q:Lcom/instagram/android/b/d;

    return-object v0
.end method

.method private e()V
    .locals 5

    .prologue
    .line 287
    iget-object v0, p0, Lcom/instagram/android/b/h;->j:Lcom/instagram/android/b/b;

    invoke-virtual {v0}, Lcom/instagram/android/b/b;->b()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    .line 289
    :try_start_0
    const-string v0, "InstagramAnalyticsLogger"

    const-string v1, "Storing batch %s"

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    iget-object v4, p0, Lcom/instagram/android/b/h;->j:Lcom/instagram/android/b/b;

    aput-object v4, v2, v3

    invoke-static {v0, v1, v2}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)V

    .line 290
    iget-object v0, p0, Lcom/instagram/android/b/h;->q:Lcom/instagram/android/b/d;

    iget-object v1, p0, Lcom/instagram/android/b/h;->j:Lcom/instagram/android/b/b;

    invoke-virtual {v0, v1}, Lcom/instagram/android/b/d;->a(Lcom/instagram/android/b/b;)Ljava/io/File;
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 295
    :cond_0
    :goto_0
    return-void

    .line 291
    :catch_0
    move-exception v0

    .line 292
    const-string v1, "InstagramAnalyticsLogger"

    const-string v2, "Unable to store batch"

    invoke-static {v1, v2, v0}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0
.end method

.method static synthetic f(Lcom/instagram/android/b/h;)Lcom/instagram/android/b/e;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/b/h;->r:Lcom/instagram/android/b/e;

    return-object v0
.end method

.method private f()V
    .locals 3

    .prologue
    .line 455
    iget-object v0, p0, Lcom/instagram/android/b/h;->o:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v1, 0x0

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 456
    iget-object v0, p0, Lcom/instagram/android/b/h;->n:Ljava/util/concurrent/ExecutorService;

    iget-object v1, p0, Lcom/instagram/android/b/h;->p:Ljava/lang/Runnable;

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    .line 458
    :cond_0
    return-void
.end method

.method static synthetic g(Lcom/instagram/android/b/h;)Lcom/instagram/android/b/b;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/b/h;->j:Lcom/instagram/android/b/b;

    return-object v0
.end method

.method static synthetic h(Lcom/instagram/android/b/h;)V
    .locals 0
    .parameter

    .prologue
    .line 54
    invoke-direct {p0}, Lcom/instagram/android/b/h;->e()V

    return-void
.end method

.method static synthetic i(Lcom/instagram/android/b/h;)Lcom/instagram/android/b/b;
    .locals 1
    .parameter

    .prologue
    .line 54
    invoke-direct {p0}, Lcom/instagram/android/b/h;->d()Lcom/instagram/android/b/b;

    move-result-object v0

    return-object v0
.end method

.method static synthetic j(Lcom/instagram/android/b/h;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/b/h;->l:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic k(Lcom/instagram/android/b/h;)V
    .locals 0
    .parameter

    .prologue
    .line 54
    invoke-direct {p0}, Lcom/instagram/android/b/h;->c()V

    return-void
.end method

.method static synthetic l(Lcom/instagram/android/b/h;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/b/h;->g:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic m(Lcom/instagram/android/b/h;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/b/h;->a:Landroid/content/Context;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 314
    sget-object v0, Lcom/instagram/android/b/a/c;->f:Lcom/instagram/android/b/a/c;

    invoke-direct {p0, v0}, Lcom/instagram/android/b/h;->a(Lcom/instagram/android/b/a/c;)V

    .line 315
    new-instance v0, Lcom/instagram/android/b/p;

    invoke-direct {v0, p0, v1, v1, v1}, Lcom/instagram/android/b/p;-><init>(Lcom/instagram/android/b/h;Ljava/lang/String;Ljava/lang/String;Lcom/instagram/android/b/i;)V

    invoke-direct {p0, v0}, Lcom/instagram/android/b/h;->a(Lcom/instagram/android/b/k;)V

    .line 316
    return-void
.end method

.method public a(Landroid/app/Activity;)V
    .locals 1
    .parameter

    .prologue
    .line 382
    const-string v0, "button"

    invoke-virtual {p0, p1, v0}, Lcom/instagram/android/b/h;->a(Landroid/app/Activity;Ljava/lang/String;)V

    .line 383
    return-void
.end method

.method public a(Landroid/app/Activity;Ljava/lang/String;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 387
    instance-of v0, p1, Landroid/support/v4/app/j;

    if-eqz v0, :cond_1

    .line 388
    check-cast p1, Landroid/support/v4/app/j;

    .line 389
    invoke-virtual {p1}, Landroid/support/v4/app/j;->f()Landroid/support/v4/app/r;

    move-result-object v1

    .line 390
    sget v0, Lcom/facebook/aw;->layout_container_main:I

    invoke-virtual {v1, v0}, Landroid/support/v4/app/r;->a(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    .line 392
    instance-of v2, v0, Lcom/instagram/b/d;

    if-eqz v2, :cond_0

    .line 393
    check-cast v0, Lcom/instagram/b/d;

    invoke-virtual {v1}, Landroid/support/v4/app/r;->f()I

    move-result v1

    invoke-virtual {p0, v0, v1, p2}, Lcom/instagram/android/b/h;->a(Lcom/instagram/b/d;ILjava/lang/String;)V

    .line 404
    :goto_0
    return-void

    .line 399
    :cond_0
    const-string v0, "InstagramAnalyticsLogger"

    const-string v1, "Cannot report navigation because current fragment is not AnalyticsModule"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 402
    :cond_1
    const-string v0, "InstagramAnalyticsLogger"

    const-string v1, "Cannot find AnalyticsModule because activity is not FragmentActivity"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public a(Landroid/view/MotionEvent;)V
    .locals 1
    .parameter

    .prologue
    .line 330
    sget-object v0, Lcom/instagram/android/b/a/c;->b:Lcom/instagram/android/b/a/c;

    invoke-direct {p0, v0}, Lcom/instagram/android/b/h;->a(Lcom/instagram/android/b/a/c;)V

    .line 331
    return-void
.end method

.method public a(Landroid/widget/TextView;)V
    .locals 1
    .parameter

    .prologue
    .line 335
    iget-object v0, p0, Lcom/instagram/android/b/h;->i:Lcom/instagram/android/b/l;

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 336
    return-void
.end method

.method public a(Lcom/instagram/b/b;)V
    .locals 2
    .parameter

    .prologue
    .line 299
    new-instance v0, Lcom/instagram/android/b/n;

    const/4 v1, 0x0

    invoke-direct {v0, p0, p1, v1}, Lcom/instagram/android/b/n;-><init>(Lcom/instagram/android/b/h;Lcom/instagram/b/b;Lcom/instagram/android/b/i;)V

    invoke-direct {p0, v0}, Lcom/instagram/android/b/h;->a(Lcom/instagram/android/b/k;)V

    .line 300
    return-void
.end method

.method public declared-synchronized a(Lcom/instagram/b/d;)V
    .locals 8
    .parameter

    .prologue
    .line 408
    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/instagram/android/b/h;->s:Lcom/instagram/b/b;

    if-eqz v0, :cond_1

    .line 409
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/instagram/android/b/h;->u:J

    sub-long/2addr v0, v2

    .line 411
    iget-object v2, p0, Lcom/instagram/android/b/h;->s:Lcom/instagram/b/b;

    const-string v3, "dest_module"

    invoke-interface {p1}, Lcom/instagram/b/d;->d_()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v2

    const-string v3, "nav_time_taken"

    invoke-virtual {v2, v3, v0, v1}, Lcom/instagram/b/b;->a(Ljava/lang/String;J)Lcom/instagram/b/b;

    .line 414
    iget-object v2, p0, Lcom/instagram/android/b/h;->s:Lcom/instagram/b/b;

    invoke-virtual {p0, v2}, Lcom/instagram/android/b/h;->a(Lcom/instagram/b/b;)V

    .line 416
    invoke-static {}, Lcom/instagram/i/a;->d()Z

    move-result v2

    if-nez v2, :cond_1

    invoke-static {}, Lcom/instagram/m/a/a;->a()Lcom/instagram/m/a/a;

    move-result-object v2

    invoke-virtual {v2}, Lcom/instagram/m/a/a;->f()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 417
    iget-object v2, p0, Lcom/instagram/android/b/h;->t:Landroid/widget/Toast;

    if-nez v2, :cond_0

    .line 418
    iget-object v2, p0, Lcom/instagram/android/b/h;->a:Landroid/content/Context;

    const-string v3, ""

    const/4 v4, 0x0

    invoke-static {v2, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v2

    iput-object v2, p0, Lcom/instagram/android/b/h;->t:Landroid/widget/Toast;

    .line 420
    :cond_0
    iget-object v2, p0, Lcom/instagram/android/b/h;->t:Landroid/widget/Toast;

    const-string v3, "%s to %s via %s (%s)"

    const/4 v4, 0x4

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    iget-object v6, p0, Lcom/instagram/android/b/h;->s:Lcom/instagram/b/b;

    invoke-virtual {v6}, Lcom/instagram/b/b;->b()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v4, v5

    const/4 v5, 0x1

    invoke-interface {p1}, Lcom/instagram/b/d;->d_()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v4, v5

    const/4 v5, 0x2

    iget-object v6, p0, Lcom/instagram/android/b/h;->s:Lcom/instagram/b/b;

    invoke-virtual {v6}, Lcom/instagram/b/b;->a()Lcom/fasterxml/jackson/databind/node/ObjectNode;

    move-result-object v6

    const-string v7, "click_point"

    invoke-virtual {v6, v7}, Lcom/fasterxml/jackson/databind/node/ObjectNode;->get(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode;

    move-result-object v6

    invoke-virtual {v6}, Lcom/fasterxml/jackson/databind/JsonNode;->textValue()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v4, v5

    const/4 v5, 0x3

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "ms"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v4, v5

    invoke-static {v3, v4}, Lcom/facebook/c/i/c;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroid/widget/Toast;->setText(Ljava/lang/CharSequence;)V

    .line 427
    iget-object v0, p0, Lcom/instagram/android/b/h;->t:Landroid/widget/Toast;

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 430
    :cond_1
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/b/h;->s:Lcom/instagram/b/b;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 431
    monitor-exit p0

    return-void

    .line 408
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized a(Lcom/instagram/b/d;ILjava/lang/String;)V
    .locals 2
    .parameter
    .parameter
    .parameter

    .prologue
    .line 370
    monitor-enter p0

    :try_start_0
    invoke-static {p3}, Lcom/facebook/c/i/c;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 371
    const-string p3, "button"

    .line 374
    :cond_0
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/instagram/android/b/h;->u:J

    .line 375
    new-instance v0, Lcom/instagram/b/b;

    const-string v1, "navigation"

    invoke-direct {v0, v1, p1}, Lcom/instagram/b/b;-><init>(Ljava/lang/String;Lcom/instagram/b/d;)V

    const-string v1, "click_point"

    invoke-virtual {v0, v1, p3}, Lcom/instagram/b/b;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/instagram/b/b;

    move-result-object v0

    const-string v1, "nav_depth"

    invoke-virtual {v0, v1, p2}, Lcom/instagram/b/b;->a(Ljava/lang/String;I)Lcom/instagram/b/b;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/b/h;->s:Lcom/instagram/b/b;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 378
    monitor-exit p0

    return-void

    .line 370
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public a(Ljava/lang/String;)V
    .locals 2
    .parameter

    .prologue
    .line 320
    new-instance v0, Lcom/instagram/android/b/o;

    const/4 v1, 0x0

    invoke-direct {v0, p0, p1, v1}, Lcom/instagram/android/b/o;-><init>(Lcom/instagram/android/b/h;Ljava/lang/String;Lcom/instagram/android/b/i;)V

    invoke-direct {p0, v0}, Lcom/instagram/android/b/h;->a(Lcom/instagram/android/b/k;)V

    .line 321
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 309
    new-instance v0, Lcom/instagram/android/b/p;

    const/4 v1, 0x0

    invoke-direct {v0, p0, p1, p2, v1}, Lcom/instagram/android/b/p;-><init>(Lcom/instagram/android/b/h;Ljava/lang/String;Ljava/lang/String;Lcom/instagram/android/b/i;)V

    invoke-direct {p0, v0}, Lcom/instagram/android/b/h;->a(Lcom/instagram/android/b/k;)V

    .line 310
    return-void
.end method

.method public b()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 325
    new-instance v0, Lcom/instagram/android/b/o;

    invoke-direct {v0, p0, v1, v1}, Lcom/instagram/android/b/o;-><init>(Lcom/instagram/android/b/h;Ljava/lang/String;Lcom/instagram/android/b/i;)V

    invoke-direct {p0, v0}, Lcom/instagram/android/b/h;->a(Lcom/instagram/android/b/k;)V

    .line 326
    return-void
.end method

.method public b(Landroid/app/Activity;)V
    .locals 2
    .parameter

    .prologue
    .line 353
    iget-object v0, p0, Lcom/instagram/android/b/h;->l:Landroid/os/Handler;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 354
    iget-object v0, p0, Lcom/instagram/android/b/h;->v:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    .line 356
    iget-boolean v0, p0, Lcom/instagram/android/b/h;->w:Z

    if-eqz v0, :cond_0

    .line 357
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/b/h;->w:Z

    .line 358
    const-string v0, "InstagramAnalyticsLogger"

    const-string v1, "Detected app resumed."

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 359
    sget-object v0, Lcom/instagram/android/b/a/c;->a:Lcom/instagram/android/b/a/c;

    invoke-direct {p0, v0}, Lcom/instagram/android/b/h;->a(Lcom/instagram/android/b/a/c;)V

    .line 360
    new-instance v0, Lcom/instagram/android/b/r;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/instagram/android/b/r;-><init>(Lcom/instagram/android/b/h;Lcom/instagram/android/b/i;)V

    invoke-direct {p0, v0}, Lcom/instagram/android/b/h;->a(Lcom/instagram/android/b/k;)V

    .line 362
    :cond_0
    return-void
.end method

.method public b(Landroid/widget/TextView;)V
    .locals 1
    .parameter

    .prologue
    .line 340
    iget-object v0, p0, Lcom/instagram/android/b/h;->i:Lcom/instagram/android/b/l;

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 341
    return-void
.end method

.method public b(Lcom/instagram/b/b;)V
    .locals 2
    .parameter

    .prologue
    .line 304
    new-instance v0, Lcom/instagram/android/b/q;

    const/4 v1, 0x0

    invoke-direct {v0, p0, p1, v1}, Lcom/instagram/android/b/q;-><init>(Lcom/instagram/android/b/h;Lcom/instagram/b/b;Lcom/instagram/android/b/i;)V

    invoke-direct {p0, v0}, Lcom/instagram/android/b/h;->a(Lcom/instagram/android/b/k;)V

    .line 305
    return-void
.end method

.method public c(Landroid/app/Activity;)V
    .locals 4
    .parameter

    .prologue
    .line 345
    iget-object v0, p0, Lcom/instagram/android/b/h;->v:Ljava/util/Set;

    invoke-interface {v0, p1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/instagram/android/b/h;->v:Ljava/util/Set;

    invoke-interface {v0}, Ljava/util/Set;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 346
    iget-object v0, p0, Lcom/instagram/android/b/h;->l:Landroid/os/Handler;

    const/4 v1, 0x2

    const-wide/16 v2, 0x1388

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 349
    :cond_0
    return-void
.end method
